<template>
  <div class="box">
    <Tabbar></Tabbar>
    <div class="box-a">
      <p>区域</p>
      <p>全部</p>
      <p>内地</p>
      <p>港台</p>
      <p>欧美</p>
      <p>韩国</p>
      <p>日本</p>
    </div>
    <div class="box-b">
      <p>版本</p>
      <p>全部</p>
      <p>MV</p>
      <p>现场</p>
      <p>翻唱</p>
      <p>舞蹈</p>
      <p>影视</p>
      <p>综艺</p>
      <p>儿歌</p>
    </div>
    <div class="box-c">
      <div class="box-c-a">全部MV</div>
      <div class="box-c-b">
        <span>最新</span>
        <span>最热</span>
      </div>
    </div>
    <div class="box-d">
      <div class="box-d-a" v-for="(item, index) in seec" :key="index">
        <img :src="item.img" alt="" />
        <p class="box-d-b se">{{ item.name }}</p>
        <p class="box-d-c se">{{ item.p }}</p>
        <p class="box-d-c">{{ item.time }}</p>
      </div>
    </div>
  </div>
</template>

<script>
import axios from "axios";
import Tabbar from '../components/Tabbar.vue';
export default {
  name: "Mv",
  data() {
    return {
      seec: null,
    };
  },
  components:{
    Tabbar
  },
  methods: {
    async fn() {
      let { data } = await axios(
        "https://mock.presstime.cn/mock/61de4f43d931a30017b06b41/qqyy"
      );
      this.seec = data.data.imgsrc;
      console.log(this.seec);
    },
  },
  created() {
    this.fn();
  },
};
</script>
<style scoped>
.box {
  padding: 0 150px;
}
p {
  margin: 6px 0;
  font-size: 15px;
}
.box-a {
  display: flex;
}
.box-a p {
  width: 60px;
  text-align: center;
  height: 30px;
  line-height: 30px;
}
.box-a p:nth-child(2) {
  background: #32c27c;
  color: #fff;
}
.box-b {
  display: flex;
}
.box-b p {
  width: 60px;
  text-align: center;
  height: 30px;
  line-height: 30px;
}
.box-b p:nth-child(2) {
  background: #32c27c;
  color: #fff;
}
.box-c {
  margin: 60px 0 20px 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.box-c-a {
  font-size: 28px;
}
.box-c-b span {
  display: inline-block;
  width: 50px;
  text-align: center;
  height: 30px;
  line-height: 30px;
  font-size: 15px;
}
.box-c-b span:nth-child(1) {
  background: #32c27c;
  border: 1px solid #32c27c;
  color: #fff;
}
.box-c-b span:nth-child(2) {
  border-top: 1px solid #c7c9c9;
  border-right: 1px solid #c7c9c9;
  border-bottom: 1px solid #c7c9c9;
}
.box-d {
  display: flex;
  flex-wrap: wrap;
}
.box-d-a {
  width: 20%;
  margin-bottom: 15px;
  overflow: hidden;
}
.box-d-a img {
  text-align: center;
}
.box-d-a img:hover {
  transform: scale(1.5);
}
.box-d-b {
  font-size: 14px;
}
.box-d-c {
  font-size: 12px;
  color: #999997;
}
.se:hover {
  color: #32c27c;
}
</style>